﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace Demos.WebForms.Classes
{
	public class MobileSimulator : Nucleo.Wurfl.Simulation.IWurflSimulator
	{

		public const string Key = "_MobileSimulator_IsMobileRequest";

		public bool IsMobileDeviceRequest()
		{
			var val = HttpContext.Current.Session[Key];
			return (val != null && true == (bool)val);
		}
	}
}